<!doctype html>
<!--[if lt IE 7 ]> <html lang="en" class="no-js ie6"> <![endif]-->
<!--[if IE 7 ]>    <html lang="en" class="no-js ie7"> <![endif]-->
<!--[if IE 8 ]>    <html lang="en" class="no-js ie8"> <![endif]-->
<!--[if IE 9 ]>    <html lang="en" class="no-js ie9"> <![endif]-->
<!--[if (gt IE 9)|!(IE)]><!--> <html lang="en" class="no-js"><!--<![endif]-->
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
		<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
		<title><g:layoutTitle default="Grails"/></title>
		<meta name="viewport" content="width=device-width, initial-scale=1.0">
		<link rel="shortcut icon" href="${resource(dir: 'images', file: 'favicon.ico')}" type="image/x-icon">
		<link rel="apple-touch-icon" href="${resource(dir: 'images', file: 'apple-touch-icon.png')}">
		<link rel="apple-touch-icon" sizes="114x114" href="${resource(dir: 'images', file: 'apple-touch-icon-retina.png')}">
		<link rel="stylesheet" href="${resource(dir: 'css', file: 'main.css')}" type="text/css">
		<link rel="stylesheet" href="${resource(dir: 'css', file: 'mobile.css')}" type="text/css">
		<link rel="stylesheet" href="${resource(dir: 'css', file: 'menu.css')}" type="text/css">
		<link rel="stylesheet" href="${resource(dir: 'css', file: 'accordion.css')}" type="text/css">		
		<g:javascript library="jquery" />
		<g:layoutHead/>
        <r:layoutResources />
        
        <script>
		$(document).ready(function() {
			$('#menu li ul').css({
				display : "none",
				left : "auto"
			});
			
			$('#menu li').hover(function() {
				$(this).find('ul').stop(true, true).slideDown('fast');
			}, function() {
				$(this).find('ul').stop(true, true).fadeOut('fast');
			});

			  $('#celebs ul > li ul')
			    .click(function(event){
			      event.stopPropagation();
			    })
			    .hide();
			    
			  $('#celebs ul > li').click(function(){
			    var selfClick = $(this).find('ul:first').is(':visible');
			    if(!selfClick) {
			      $(this)
			        .parent()
			        .find('> li ul:visible')
			        .slideToggle();
			    }
			    
			    $(this)
			      .find('ul:first')
			      .stop(true, true)
			      .slideToggle();
			  });
			});
	
		</script>

	</head>
	<body>
		<g:render template="/layouts/header" />
		<g:layoutBody/>
		<g:render template="/layouts/footer" />
	</body>
</html>